﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link rel="Stylesheet" type="text/css" media="screen" href="Screen.css" />
  <title>STP_SetPortAutoEdge</title>
</head>
<body>
	<h3>STP_SetPortAutoEdge</h3>
	<hr />
<pre>
void STP_SetPortAutoEdge
(
    STP_BRIDGE*   bridge,
    unsigned int  portIndex,
    bool          autoEdge
);
</pre>
	<h4>
		Summary</h4>
	<p>
		Sets the AutoEdge parameter for a given port.</p>
	<h4>
		Parameters</h4>
	<dl>
		<dt>bridge</dt>
		<dd>Pointer to a STP_BRIDGE object, obtained from <a href="STP_CreateBridge.html">
			STP_CreateBridge</a>.</dd>
		<dt>portIndex</dt>
		<dd>The index of the port for which the AutoEdge parameter is to be set.</dd>
		<dt>newAutoEdge</dt>
		<dd>The new value of the AutoEdge parameter.</dd>
	</dl>
	<h4>
		Remarks</h4>
		<p>
			For more information, see §13.27.18 in 802.1Q-2018.</p>
	<p>
			The STP Library initializes this variable to TRUE, as recommended in the standard.</p>
	
	<p>
			Execution of this function is a potentially lengthy process. 
			It may call various callbacks multiple times.</p>
	<p>
			This function may <em>not</em> be called from within an <a href="STP_CALLBACKS.html">STP callback</a>.</p>
	
</body>
</html>
